package dev.mrchen.flows.core.cmd;

import dev.mrchen.flows.core.DataLevel;
import dev.mrchen.flows.core.Executor;
import dev.mrchen.flows.core.FlowData;
import dev.mrchen.flows.core.FlowInfo;

public class SetSystemInfoExecutor implements Executor {

    @Override
    public void execute(FlowInfo nextFlow, FlowData data) throws Exception {
        System.getProperties().forEach( (k,v)->{
            data.setData(DataLevel.System , String.valueOf(k) , v );
        });
        nextFlow.next(data);
    }
}
